#define _CRT_SECURE_NO_WARNINGS 1
#include "SeqList.h"
void test1()
{
	SeqList SL;
	SeqListInit(&SL);
	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	SeqListPrint(&SL);
	SeqListPushBack(&SL, 5);
	SeqListPrint(&SL);
	SeqListDestroy(&SL);
}

void test2()
{
	SeqList SL;
	SeqListInit(&SL);
	SeqListPushBack(&SL, 1);
	SeqListPushBack(&SL, 2);
	SeqListPushBack(&SL, 3);
	SeqListPushBack(&SL, 4);
	
	SeqListPushBack(&SL, 5);

	SeqListPrint(&SL);
	SeqListPushFront(&SL, 6);
	SeqListPushFront(&SL, 7);
	SeqListPushFront(&SL, 8);
	SeqListPushFront(&SL, 9);
	SeqListPrint(&SL);

	SeqListPopBack(&SL);	
	SeqListPopBack(&SL); 
	SeqListPopBack(&SL); 
	SeqListPopBack(&SL);
	SeqListPrint(&SL);

	SeqListPopFront(&SL);
	SeqListPrint(&SL);

	SeqListDestroy(&SL);
}
int main()
{
	test2();
	return 0;
}